<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Tag extends Model
{
    public function getTopic()
    {
        return $this->belongsToMany('App\Models\TopicBbs', 'topic_tag', 'tag_id', 'topic_id');
    }
}
